package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.SysRoleDto;
import com.atguigu.spzx.model.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * ClassName:SysRoleMapper
 * Description:
 *
 * @author Yql
 * @version 1.0
 * @Create 2024/2/2
 **/
@Mapper
public interface SysRoleMapper {
    public abstract List<SysRole> findByPage(SysRoleDto sysRoleDto);
    public abstract void saveSysRole(SysRole sysRole);

    public abstract void updateSysRole(SysRole sysRole);

    public abstract void deleteById(Long roleId);


    public abstract List<SysRole> findAllRoles();

    public abstract List<SysRole> findSysUserRoleByUserId(Long userId);


}
